home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / QDDVX102.ZIP / contrib / dvx / inc / pwd.h < prev    next >
Text File  |  1993-07-15  |  2KB  |  66 lines

  1. #ifndef __PWD_H__
  2. #define __PWD_H__
  3. /*
  4.  * $Header: pwd.h,v 1.1 90/01/16 12:14:48 dbo Exp $
  5.  
  6.  * This material is confidential and is furnished under a written
  7.  * license agreement.  It may not be used, copied or disclosed to
  8.  * others except in accordance with the terms of that agreement.
  9.  * 
  10.  * Copyright (C) 1987, 1991 Spectragraphics, Inc.
  11.  * All Rights Reserved.
  12.  * 
  13.  * Some portions Copyright 1987 by Digital Equipment Corporation, Maynard,
  14.  * Massachusetts, and the Massachusetts Institute of Technology, Cambridge,
  15.  * Massachusetts.
  16.  * 
  17.  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19.  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23.  * SOFTWARE.
  24.  
  25.  * $Locker:  $
  26.  */
  27.  
  28. /*    pwd.h    4.1    83/05/03    */
  29.  
  30. struct    passwd { /* see getpwent(3) */
  31.     char    *pw_name;
  32.     char    *pw_passwd;
  33.     unsigned short    pw_uid;
  34.     unsigned short    pw_gid;
  35.     unsigned short    pw_quota;
  36.     char    *pw_comment;
  37.     char    *pw_gecos;
  38.     char    *pw_dir;
  39.     char    *pw_shell;
  40. };
  41.  
  42. #ifndef NO_PROTO
  43.  
  44. char *getlogin(void);
  45. int getuid(void);
  46. void setpwent(void);
  47. struct passwd *getpwent(void);
  48. struct passwd *getpwuid(int uid);
  49. struct passwd *getpwnam(char *name);
  50. char *getpwvar(char *key,char *var);
  51.  
  52. #else /* NO_PROTO */
  53.  
  54. char *getlogin();
  55. int getuid();
  56. void setpwent();
  57. struct passwd *getpwent();
  58. struct passwd *getpwuid();
  59. struct passwd *getpwnam();
  60. char *getpwvar();
  61.  
  62. #endif    /* NO_PROTO */
  63.  
  64. #endif /* __PWD_H__ */
  65.  
  66.